package com.sakura.mapper;

import com.sakura.dbo.ElderlyDBO;
import com.sakura.dbo.UnCheckElderlyDBO;
import com.sakura.entity.Elderly;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author Sakura
 * @description 针对表【elderly】的数据库操作Mapper
 * @createDate 2023-11-22 15:49:03
 * @Entity com.sakura.entity.Elderly
 */
@Mapper
public interface ElderlyMapper extends BaseMapper<Elderly> {

    /**
     * 获取当天还未检查的老人
     */
    List<ElderlyDBO> getUnCheckElderlyList();

    /**
     * 获取当天需要检查的老人
     */
    List<ElderlyDBO> getNeedCheckElderlyList();

    /**
     * 获取当天还未检查的老人分页
     */
    List<UnCheckElderlyDBO> getUnCheckElderlyPage(@Param("start") Integer pageNo, @Param("pageSize") Integer pageSize, @Param("searchKey") String searchKey);

    /**
     * 获取当天需要检查的老人数量
     */
    Long getNeedCheckElderlyTotal(@Param("searchKey") String searchKey);
}




